<?php

  abstract class Category
  {
    protected $score;
    private $name;
    
    public function __construct($name)
    {
      $this->name = $name;
    }
    
    public function getScore()
    {
      return $this->score;
    }

    public function output()
    {
      echo "    <tr>".PHP_EOL;
      echo "      <td>{$this->name}</td>".PHP_EOL;
      echo "      <td>".(string)$this->score."</td>".PHP_EOL;
      echo "    </tr>".PHP_EOL;
    }
  }

?>